home *** CD-ROM | disk | FTP | other *** search
/ Champak 86 / (Vol 86) My Disc.iso / Games / pet_1112.swf / scripts / DefineSprite_577_youDone / frame_9 / DoAction.as
Text File  |  2009-04-14  |  980b  |  41 lines

  1. function animateOut()
  2. {
  3.    setTimeout(function()
  4.    {
  5.       thisClip.removeMovieClip();
  6.    }
  7.    ,1000);
  8.    done_mc.wobbleOut(0.2);
  9.    bg_mc.wobbleOut(0.3);
  10.    caurina.transitions.Tweener.addTween(yesBtn_mc,{_alpha:0,time:0.5});
  11.    caurina.transitions.Tweener.addTween(noBtn_mc,{_alpha:0,time:0.5});
  12. }
  13. var thisClip = this;
  14. noBtn_mc.onClick = function()
  15. {
  16.    if(_root.theGames_mc.matchGame_mc.nextMatchNum != -1 && !_root.theGames_mc.matchGame_mc.mix_game_reward)
  17.    {
  18.       _root.theGames_mc.matchGame_mc.nextMatch();
  19.    }
  20.    animateOut();
  21. };
  22. rect_mc.onRelease = function()
  23. {
  24. };
  25. rect_mc.useHandCursor = false;
  26. yesBtn_mc.onClick = function()
  27. {
  28.    _root.theGames_mc.matchGame_mc.mix_game_reward.out();
  29.    if(!_root.theGames_mc.matchGame_mc.mix_game_reward)
  30.    {
  31.       _root.theGames_mc.resetGames();
  32.    }
  33.    else
  34.    {
  35.       setTimeout(_root.theGames_mc.resetGames,2000);
  36.    }
  37.    animateOut();
  38. };
  39. noBtn_mc.play();
  40. sounds.JOE_BMMDU_027.start();
  41.